Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,5 +93,11 @@ def send_to_openai(api_key, image_file):
|
|
93 |
recognition = assistant_response.split('\n')
|
94 |
return ' '.join(words), ' '.join(recognition)
|
95 |
|
96 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
iface.launch()
|
|
|
93 |
recognition = assistant_response.split('\n')
|
94 |
return ' '.join(words), ' '.join(recognition)
|
95 |
|
96 |
+
iface = gr.Interface(
|
97 |
+
fn=send_to_openai,
|
98 |
+
inputs=["text", "file"],
|
99 |
+
outputs=["text", "text"],
|
100 |
+
title="Rice Leaf Disease Detection Demo Using GPT-4V(ision)",
|
101 |
+
description="Made By Akash Mondal - https://github.com/akash-mondal GPT-4Vision Paper - https://cdn.openai.com/papers/GPTV_System_Card.pdf "
|
102 |
+
)
|
103 |
iface.launch()
|