Questions tagged [gradio]
119 questions
0
votes
0 answers
Microphone error not working in Gradio app
I have built an app for recording audio through microphone using Gradio. I'am trying to display an error which will appear if the user hasn't attached a microphone. I need two things to be happening
Error message should be displayed if there is no…

Indranil
- 31
- 6
0
votes
0 answers
How to resubmit the same input in gradio when there is error
I have a gradio interface which takes audio (microphone recording) as input and translates on output. If there is an error on output , the user has to rerecord the voice once again. Is there a way to resubmit the recorded voice and other inputs
I…

Satyabrata Rath
- 1
- 1
0
votes
2 answers
Returns : ModuleNotFoundError: No module named 'gradio' when I try to run my program
when I run my code :
import openai
import gradio
openai.api_key = "REDACTED_OPENAI_KEY"
messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation"}]
def…

Gabe coupal
- 11
- 1
- 1
0
votes
1 answer
How to add question and GPT Api response variables to Gradio chatbot()?
I have a program that extracts the information form a previously-created and working json file, and then uses chatGPT API to query this document. I need to input the initial user input and then the response to his input all within the bot scrolling…

skeitel
- 271
- 2
- 6
- 17
0
votes
0 answers
Gradio - Running Parallel ASW models
I am trying to run parallel models on Gradio for the ASR.
I am loading the base model and I have 2 transcribe methods for each model, but in this case it is the same model for testing purposes. When I run it with the single interface on the Parallel…

Baradwaj Aryasomayajula
- 1,184
- 1
- 16
- 42
0
votes
1 answer
How do I use Gradio blocks as variables that can be used in a local function?
Explanation
I am trying to use Gradio blocks as inputs to create variables. The variables are then sent to a function to be used to format a string.
The problem
The variables that the Gradio blocks create are not accepted by the later function.…

Noam Siegel
- 13
- 5
0
votes
0 answers
How to access Raspberrypi Picamera from Google colaboratory
I was developing a plant disease detection system and finished training the dataset on model in the google collaboratory, now i want to use the picamera in the raspberry pi to show a leaf of the plant and detect the diseases.
I used Gradio in the…

DAMO
- 1
- 2
0
votes
1 answer
How can I clear the input in a gradio app automatically?
I want to be able to clear the input with gradio at the end of completing the inference without any additional click from the user. Currently with live=True, the inference function is triggered when the recording is stopped.
Here is the relevant…

Corey
- 170
- 2
- 11
0
votes
1 answer
I am trying to open a gradio program using a tkinter button, the function is being called but it does not open in on a browser
I am using Visual Studio Code with Pylance
I am trying with the following program, the local host is being created, the gradio function also generates a link which when you physically enter in the browser opens the gradio program properly but is…
0
votes
1 answer
How do I refresh a gradio button after pressing submit?
I have a simple input/output gradio interface:
import gradio as gr
def generate_output(input_text):
output_text = "Hello, " + input_text + "!"
return output_text
iface = gr.Interface(fn=generate_output,
inputs=…

ardito.bryan
- 429
- 9
- 22
0
votes
0 answers
Using Windows' SAPI SpVoice with Gradio
When I used the SAPI alone, it works perfectly fine.
import win32com.client as wincl
speak = wincl.Dispatch("SAPI.SpVoice")
sentence = "This is a voice from Windows"
speak.Speak(sentence)
However, when I put it inside the Gradio function, it does…

Will-NotGiveUp
- 96
- 6
0
votes
1 answer
GRADIO: Change position of second slider, when value lower than on first one
I have 2 sliders created in Gradio:
number1 = gr.Slider(0, 20, step=1, label='number1', default=0, interactive=True)
number2 = gr.Slider(0, 20, step=1, label='number2', default=0, interactive=True)
gr.Interface(add_function, [number1, number2],…

newblack
- 73
- 2
- 11
0
votes
1 answer
How can I show the progress of a script running in Gradio?
I have successfully implemented a button in Gardio that runs a script.
def generate_output(input_path,output_path):
cmd = f"python parse.py \"{input_path}\" \"{output_path}\""
subprocess.call(cmd, shell=True)
with gr.Row():
…

sooyeon
- 488
- 1
- 5
- 16
0
votes
1 answer
How to Output Downloadable file after processing?
Specification
gr.__version__ --> '3.16.2'
I want to create a gradio tab in mygradio app
Disregard TAB 1, I am only working on tab2
where I upload an excel file
save name of the excel fie to a variable
process that excel file take data out of it 2…

sogu
- 2,738
- 5
- 31
- 90
0
votes
1 answer
gradio refresh interface when selecting File
I'm trying to create a gradio User Interface which does the following
on the left panel I have a File control, that allows the selection of a local file (eg. a .csv)
when a file is selected a "Process" button should be made visible
when the…

chrx
- 2,169
- 5
- 24
- 45