Commit
·
629f682
1
Parent(s):
c783314
remove image input
Browse files
app.py
CHANGED
|
@@ -6,14 +6,14 @@ import base64
|
|
| 6 |
from PIL import Image
|
| 7 |
import io
|
| 8 |
|
| 9 |
-
def process_image_stream(
|
| 10 |
return "This is a test response"
|
| 11 |
|
| 12 |
# Create Gradio interface
|
| 13 |
demo = gr.Interface(
|
| 14 |
fn=process_image_stream,
|
| 15 |
inputs=[
|
| 16 |
-
gr.Image(type="filepath", label="Upload Image"),
|
| 17 |
gr.Textbox(
|
| 18 |
label="Question",
|
| 19 |
placeholder="Ask a question about the image...",
|
|
|
|
| 6 |
from PIL import Image
|
| 7 |
import io
|
| 8 |
|
| 9 |
+
def process_image_stream(question, max_tokens):
|
| 10 |
return "This is a test response"
|
| 11 |
|
| 12 |
# Create Gradio interface
|
| 13 |
demo = gr.Interface(
|
| 14 |
fn=process_image_stream,
|
| 15 |
inputs=[
|
| 16 |
+
# gr.Image(type="filepath", label="Upload Image"),
|
| 17 |
gr.Textbox(
|
| 18 |
label="Question",
|
| 19 |
placeholder="Ask a question about the image...",
|