Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -259,14 +259,16 @@ Answer:"""
|
|
| 259 |
return answer
|
| 260 |
# If no relevant keywords found
|
| 261 |
else:
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
| 270 |
|
| 271 |
# Gradio interface
|
| 272 |
iface = gr.Interface(
|
|
|
|
| 259 |
return answer
|
| 260 |
# If no relevant keywords found
|
| 261 |
else:
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
# Use hosted Gradio model
|
| 265 |
+
from gradio_client import Client
|
| 266 |
+
client = Client("Gajendra5490/SkinChatBot")
|
| 267 |
+
result = client.predict(
|
| 268 |
+
prompt=user_question, # Pass actual user question
|
| 269 |
+
api_name="/predict"
|
| 270 |
+
)
|
| 271 |
+
return result
|
| 272 |
|
| 273 |
# Gradio interface
|
| 274 |
iface = gr.Interface(
|