Update app.py
Browse files
app.py
CHANGED
@@ -330,6 +330,7 @@ print(llm_ans(query))
|
|
330 |
|
331 |
"""Gradio Chat UI (Inspired from HinePo)"""
|
332 |
|
|
|
333 |
import locale
|
334 |
locale.getpreferredencoding = lambda: "UTF-8"
|
335 |
|
@@ -342,8 +343,7 @@ demo = gr.ChatInterface(
|
|
342 |
fn=predict,
|
343 |
title=f'Open-Source LLM ({CFG["model_name"]}) Question Answering'
|
344 |
)
|
345 |
-
|
346 |
-
|
|
|
347 |
|
348 |
-
import gradio as gr
|
349 |
-
print(gr.__version__)
|
|
|
330 |
|
331 |
"""Gradio Chat UI (Inspired from HinePo)"""
|
332 |
|
333 |
+
import gradio as gr
|
334 |
import locale
|
335 |
locale.getpreferredencoding = lambda: "UTF-8"
|
336 |
|
|
|
343 |
fn=predict,
|
344 |
title=f'Open-Source LLM ({CFG["model_name"]}) Question Answering'
|
345 |
)
|
346 |
+
demo.queue()
|
347 |
+
demo.launch()
|
348 |
+
|
349 |
|
|
|
|