Questions tagged [gradio]
119 questions
0
votes
0 answers
How to input via gradio dropdowns using variable information stored in a data frame?
I'm trying to input info from an easily editable CSV file where the first row contains the variable names. I am doing this by iterating over the list of variables so each variable is a new dropdown. Using this method everything appears correctly in…

Maracman
- 13
- 2
0
votes
1 answer
Share is not supported when you are in Spaces. Gradio&Hugging face's Spaces
Basiclly problem is that i can only run my space locally. Either error is "To create a public link, set share=True in launch().", and after doing that RuntimeError: "Share is not supported when you are in Spaces."
intf =…

wqerty
- 1
- 1
0
votes
1 answer
gradio importing error on jupyter notebook: SyntaxError: future feature annotations is not defined
So I am pretty new to the ML world and currently following fastai's deep learning course. I tried to import gradio on my local machine's Jupyter. (using mamba). Whenever I try to import the module as
import gradio as gr
it gives me this…
0
votes
2 answers
How to use Gradio interface to auto submit the audio when recording is done?
I am using the following Gradio sample code to transcribe my audio:
from transformers import pipeline
p = pipeline("automatic-speech-recognition")
import gradio as gr
def transcribe(audio):
text = p(audio)["text"]
return…

Zing
- 83
- 1
- 8
0
votes
0 answers
flag = str(input()) EOFError: EOF when reading a line
I'm a beginner in this field and trying to make a gradio project of detecting similar image.
Here's my code -
import gradio as gr
from DeepImageSearch import Index, LoadData,SearchImage
import os;
def similar(input_img):
image_list…

Vaibhav Singh
- 1
- 2
0
votes
0 answers
Gradio - set "Number" value to NaN
I'm building my first interface with Gradio and I've encountered an issue. The data I used for training my XGB classifier contains NaN values, and I want to enable possibility of NaN input in Gradio interface. As for now I've tried to set default…

Ania
- 1
0
votes
0 answers
GRadio ML module error: Can not load native module
so it's my first time using the gradio in machine learning, just install it and do some basic import (i use the 3.10.6 python)
import gradio as gr
and comes the error like this
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Not found…

Binz
- 35
- 3
- 9
0
votes
0 answers
How can I display subtitles along with a video with Gradio?
I use Gradio to demonstrate some speech recognition system in a video. How can I display subtitles along with a video with Gradio?

Franck Dernoncourt
- 77,520
- 72
- 342
- 501
0
votes
0 answers
How to use gradio dataframe as output for an interface
So I have a scraper that collects data from different sources and them returns the result as a dataframe. I currently want to create a Gradio interface that given a user input would returns the resulting dataframe as…

i'mgnome
- 483
- 1
- 3
- 17
0
votes
0 answers
how to use selenium on web apps built with gradio?
I am trying to click a button on selenium on a web app built using selenium. But ending up with error "element not found".
I want to click the submit button using selenium,
This is the code I am using,
button =…

Chiragjot Singh
- 27
- 4
0
votes
1 answer
Exception: MissingSchema with Gradio Library
I'm using the gradio library with one of the basic examples, but am getting this error. I am running this in a Google Colab Notebook. Here is the relevant lines of code:
fare = gr.inputs.Slider(minimum=0, maximum=1000, default=100, label="Fare…

Curious Student
- 61
- 4
-1
votes
1 answer
How to add heading or text before input/output in gradio?
I did a machine learning project on MNIST and deployed that on gradio. Any user won't understand what he should input to use the model. So I want to add a heading or description on gradio live website so that anyone can understand.
I tried with…
-1
votes
1 answer
How to fix `transformers` package not found error in a Python project with `py-langchain`, `llama-index`, and `gradio`?
I get this error ModuleNotFoundError: No module named 'transformers' even though I did the pip install transformers command. Could you kindly help me? Thank you
My code:
import os
import sys
from dotenv import load_dotenv
import gradio as gr
from…
-2
votes
2 answers
Gradio ouputs keys of a dictionary instead of strings while using openai.ChatCompletion API and GPT-3.5-turbo
I have been trying to create a GPT-3.5-turbo chatbot with a Gradio interface, the chatbot works perfectly fine in command line but not when I implement it with Gradio. I am able to send my input and receive the response. However the response then…

KnoBuddy
- 1
- 2