Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,23 +3,23 @@ from sentence_transformers import SentenceTransformer, util
|
|
3 |
import openai
|
4 |
import os
|
5 |
#trying so when user puts la or los angles specific pic comes:
|
6 |
-
import gradio as gr
|
7 |
|
8 |
# URL or path to your image file
|
9 |
-
PICTURE_URL = "https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.viator.com%2Fblog%2FLos-Angeles-Neighborhood-Guide%2Fl28613&psig=AOvVaw373cy7Ol0Un2ZFwQhyhQCW&ust=1722567700903000&source=images&cd=vfe&opi=89978449&ved=0CBEQjRxqFwoTCOj2x_Hm0ocDFQAAAAAdAAAAABAM"
|
10 |
|
11 |
-
def respond(user_input):
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
17 |
# Define the Gradio interface
|
18 |
-
iface = gr.Interface(
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
23 |
|
24 |
# Launch the interface
|
25 |
iface.launch()
|
|
|
3 |
import openai
|
4 |
import os
|
5 |
#trying so when user puts la or los angles specific pic comes:
|
|
|
6 |
|
7 |
# URL or path to your image file
|
8 |
+
#PICTURE_URL = "https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.viator.com%2Fblog%2FLos-Angeles-Neighborhood-Guide%2Fl28613&psig=AOvVaw373cy7Ol0Un2ZFwQhyhQCW&ust=1722567700903000&source=images&cd=vfe&opi=89978449&ved=0CBEQjRxqFwoTCOj2x_Hm0ocDFQAAAAAdAAAAABAM"
|
9 |
|
10 |
+
#def respond(user_input):
|
11 |
+
# if "los angeles" in user_input.lower() or "la" in user_input.lower():
|
12 |
+
# return f"Here's a picture of Los Angeles!", PICTURE_URL
|
13 |
+
# else:
|
14 |
+
# return "How can I help you with astronomy?", None
|
15 |
|
16 |
# Define the Gradio interface
|
17 |
+
#iface = gr.Interface(
|
18 |
+
|
19 |
+
# fn=respond,
|
20 |
+
# inputs="text",
|
21 |
+
# outputs=["text", "image"]
|
22 |
+
)#
|
23 |
|
24 |
# Launch the interface
|
25 |
iface.launch()
|