Questions tagged [gradio]

119 questions
1
vote
1 answer

Gradio cannot install

I tried several ways to install gradio. But it gives this error every time. I can't install it. What could be the solution? C:\Users\ugurn>pip install gradio Collecting gradio Using cached gradio-3.15.0-py3-none-any.whl (13.8 MB) Collecting…
Fuinithil
  • 13
  • 1
  • 5
1
vote
0 answers

Trying to Build a iframe that takes Gradio Link as Source as displays the resulting model output

I am trying to build a SPA which would input box that would take a Gradio Link, (Gradio is simple tool to build Interface for ML Models). Now, I am using an Iframe that takes the user input URL and displays the result. Something like: Problem is…
1
vote
0 answers

How do I get HuggingFace analytics/metrics of uses?

I want to know how many users I get on my application, and some interesting time series of uses. I see Gradio has analytics_enabled but I can't find any more information on it. (https://gradio.app/docs/)
Jonathan Allen Grant
  • 3,408
  • 6
  • 30
  • 53
1
vote
1 answer

Messaging/Feedback mechanism in Gradio apps

I'm building a Gradio app. The server-side processing may take a long time so I'd like to be able to implement a messaging paradigm to update the user-interface based on the processing status. Something like dynamically setting a Component's value…
ted
  • 13,596
  • 9
  • 65
  • 107
1
vote
1 answer

I want gradio to show output from files in real-time

I'm creating with gradio, a programs that connects to switches via api and can do various operations. The code is working fine, but I would like that the output text inbox to be 'fed' in real-time, Meaning, I don't want to see the results when the…
LittleWing
  • 21
  • 6
1
vote
0 answers

How to deploy a transformer model with Gradio

I want to deploy a Huggingface tranformer object detection model with Gradio. I have followed exactly the Gradio documentation for transformer models, but I keep getting the error message below every time I try to launch the app: ValueError …
Idiaye
  • 39
  • 8
1
vote
1 answer

How do I successfully deploy a transformer model using Gradio to Hugginface Space?

I want to deploy an image classifying transformer model with Gradio to my Hugginface space. I have created a new repository and have created the app.py file in the browser as per the tutorial on the Gradio website. Below is my deploy code: from…
Idiaye
  • 39
  • 8
1
vote
1 answer

Gradio - Pytorch MNIST Digit Recognizer

I watched the following video on YouTube https://www.youtube.com/watch?v=jx9iyQZhSwI where it was shown that it is possible to use Gradio and the learned model of MNIST dataset in Tensorflow. I have read and written that it is possible to use…
josf
  • 3
  • 9
1
vote
1 answer

How can I extract and store the text generated from an automatic speech recognition deep learning app

The app can be viewed in huggingface https://huggingface.co/spaces/rowel/asr import gradio as gr from transformers import pipeline model = pipeline(task="automatic-speech-recognition", …
chao
  • 11
  • 1
1
vote
0 answers

I'm using Gradio for making UI for my model

def detect(audio): chime_threshold = 0.5 prediction = detect_triggerword(audio) chime_on_activate(your_filename, prediction, chime_threshold) return IPython.display.Audio("./chime_output.wav") detect=gr.Interface(fn=detect,…
0
votes
0 answers

Use Start/Stop button to record live audio using Gradio app

I need help with a problem. I want to add a button in my Gradio app to start/stop audio recording. Basically, what I am trying to do is place a button on the UI. When a user clicks on the this button(let's say "Speak"), then audio recoding starts…
John Doe
  • 1
  • 1
0
votes
0 answers

Develop a txt2img API for custom frontend

I have been using Auto1111's webui for getting started with diffusion models and LoRas. I want to create my own text-to-image website where users can play around with different models and LoRas that I upload on the server, like a playground of…
0
votes
0 answers

Unable to generate a public url with Gradio on python

I've programmed a python script using gradio. But I can't generate a public URL. When I run the program, my terminal returns the following: Could not create share link. Missing file:…
0
votes
0 answers

Find which script is run when request (GET) is sent to port

I am having a hard time trying to do something very simple. I basically want to send a GET variable via URL https://localhost:port/?foo=bar and capture it on the script that handles it. The problem is that I'm using a gradio app that wasnt developed…
Lucas Azevedo
  • 1,867
  • 22
  • 39
0
votes
0 answers

Is there any way to resolve this Gradio Output Error

When I run the code outside of gradio, I get the results I want. But within radio I get error. Gradio Code User Interface Error When I run the code outside of gradio, I get the results I want. But within radio I get error.