harishreddy311 commited on
Commit
c04664c
·
1 Parent(s): 282a1ab

Fix Gradio ChatInterface compatibility for Hugging Face deployment

Browse files

- Removed unsupported ChatInterface parameters (retry_btn, undo_btn, clear_btn, submit_btn, stop_btn)
- These parameters are not available in the Gradio version used on Hugging Face
- Application now uses basic ChatInterface parameters for better compatibility
- All UI enhancements and functionality remain intact
- Fixes runtime error: TypeError: ChatInterface.__init__() got an unexpected keyword argument

Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -272,13 +272,7 @@ with gr.Blocks(
272
  "What led to the fall of the Roman Empire?"
273
  ],
274
  title="",
275
- description="",
276
- retry_btn="🔄 Retry",
277
- undo_btn="↩️ Undo",
278
- clear_btn="🗑️ Clear",
279
- submit_btn="📤 Send",
280
- stop_btn="⏹️ Stop",
281
- css=".chat-container"
282
  )
283
 
284
  # Enhanced Control Panel
 
272
  "What led to the fall of the Roman Empire?"
273
  ],
274
  title="",
275
+ description=""
 
 
 
 
 
 
276
  )
277
 
278
  # Enhanced Control Panel