Questions tagged [gradio]

119 questions
0
votes
0 answers

Can you build a 3D isometric grid GUI in gradio.app?

I'm trying to demo Free2CAD (for context), but I believe this question applies more generally: is it possible to create a 3d isometric grid drawing GUI with gradio.app? I've noticed they have this api: model3d, but I'm not sure how to go about…
profPlum
  • 403
  • 4
  • 12
0
votes
0 answers

Gradio not deploying my nested application file to hugging face

I am trying to update my gradio app in hugging face by specifying a different custom app file. I am using the command gradio deploy --app-file ./interview/app.py to deploy the app. But my hugging face space is not able to find the application…
Deepak Patankar
  • 3,076
  • 3
  • 16
  • 35
0
votes
0 answers

When using the ChatInterface, how to remove -or edit- the "Chatbot" leyend on top left?

The title. I would like to remove it or at least be able to edit it. Checked documentation and inspected the rendered running app, but I am not able to find the way. currently using: aleph_ui = gr.ChatInterface(chat_streamer, …
Hualdo
  • 1
0
votes
1 answer

How to Implement Page Separation in Gradio?

I'm trying to use Gradio for creating a user interface, and I'm looking to implement a multi-page setup using it. I want to have different pages within the interface for different tasks. Could you guide me on how to achieve this? I've gone through…
ponda
  • 13
  • 2
0
votes
0 answers

Is there a way to link gradio interfaces through webpages?

Suppose that I have a python gradio interface with a text box in the default "/" path of an html/python website and I want to have a text response in the interface carry over to another textbox/interface in the "/other" path; how are we able to go…
0
votes
0 answers

Chatbot that responds to user queries with images

I have created a chatbot using gpt3.5 and gradio, I have referred this for creating it. So my UI is similar to ChatGpt. I am able to respond to user queries with text output, but unable to respond with images, while maintaining chat history. Below…
user18148705
  • 215
  • 1
  • 11
0
votes
1 answer

Gradio on Sagemaker Studio Lab

I am trying a simple example of Gradio on a Sagemaker Studio Lab notebook. But the output does not appear. According to the documentation when running on a notebook it should appear right in the notebook. This is indeed what happens when I run the…
0
votes
1 answer

json error is occuring when i executing the code in google collab in python

123-jaji/genaichatbot code: if __name__ == "__main__": demo.launch() error: ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost. Colab…
0
votes
2 answers

How to Use the Gradio Javascript Client

I have built a prompt-generating demo app with gradio hosted as a Hugging Face space. Now, I want to use the gradio javascript client to call the api in a website. Here is my code:
Idiaye
  • 39
  • 8
0
votes
0 answers

freeGPT answer not outputing to gradio

I was trying to make basic gpt chat using free gpt and gradio but this code is doesnt output anything. I tried hosting on spaces but it stil won't output anything. Code: import freeGPT import asyncio import gradio as gr async def chat(prompt): …
0
votes
1 answer

ValueError: Invalid message for Chatbot component: (message)

I am building the chatbot based on llama_index, langchain and gradio (as GUI). My code look like this at the moment: import gradio as gr import langchain from langchain.memory import ConversationBufferMemory from langchain.chains import…
Renata Ka
  • 21
  • 2
0
votes
0 answers

Gradio: How to send the output of tab1 to the input of tab2 and activate tab2?

For example, I have following mini app : import gradio as gr def processing1(text): return "result1", "result2" def send(): pass def processing2(text): return "result3" tab1 = gr.Blocks() with tab1: with gr.Row(): …
Wade Wang
  • 536
  • 6
  • 11
0
votes
0 answers

How Can I Solve this Image-to-speech Gradio App Error?

I have written an image-to-speech Python application but want to build a Gradio frontend for the app. Below is my Python code: from transformers import pipeline from bark import SAMPLE_RATE, generate_audio, preload_models from IPython.display…
Idiaye
  • 39
  • 8
0
votes
0 answers

gradio blocks as outputs in gr.Interface

I wish to plot k images (upto 9) in a 3x3 grid. I have figured out how to plot in the 3x3 grid using gr.Blocks, however I do not know how to make this part of a gradio interface. How do I fix the following: def get_sampled_images(k: int): …
sachinruk
  • 9,571
  • 12
  • 55
  • 86
0
votes
1 answer

SD Automatic 1111: src/tcmalloc.cc:283] Attempt to free invalid pointer 0x5a3426b059d0

Is anyone else running into issues running the Stable Diffusion 1.5~2.1 on Automatic1111 UI in Google Colab and seeing this error message? I think I messed up my environment testing out version 0.9; the error is "related to memory allocation and…