Gajendra5490 commited on
Commit
15c1dda
·
verified ·
1 Parent(s): c81a822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -259,14 +259,16 @@ Answer:"""
259
  return answer
260
  # If no relevant keywords found
261
  else:
262
- # Use hosted Gradio model
263
- from gradio_client import Client
264
- client = Client("Gajendra5490/SkinChatBot")
265
- result = client.predict(
266
- prompt=user_question, # Pass actual user question
267
- api_name="/predict"
268
- )
269
- return result
 
 
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(