Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,6 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 7 |
model_id = "azservice/TestLogica-Pdfs"
|
| 8 |
client = InferenceClient(model_id)
|
| 9 |
|
| 10 |
-
|
| 11 |
def respond(
|
| 12 |
message,
|
| 13 |
history: list[tuple[str, str]],
|
|
@@ -40,7 +39,6 @@ def respond(
|
|
| 40 |
response += token
|
| 41 |
yield response
|
| 42 |
|
| 43 |
-
|
| 44 |
"""
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 46 |
"""
|
|
@@ -60,6 +58,5 @@ demo = gr.ChatInterface(
|
|
| 60 |
],
|
| 61 |
)
|
| 62 |
|
| 63 |
-
|
| 64 |
if __name__ == "__main__":
|
| 65 |
demo.launch()
|
|
|
|
| 7 |
model_id = "azservice/TestLogica-Pdfs"
|
| 8 |
client = InferenceClient(model_id)
|
| 9 |
|
|
|
|
| 10 |
def respond(
|
| 11 |
message,
|
| 12 |
history: list[tuple[str, str]],
|
|
|
|
| 39 |
response += token
|
| 40 |
yield response
|
| 41 |
|
|
|
|
| 42 |
"""
|
| 43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 44 |
"""
|
|
|
|
| 58 |
],
|
| 59 |
)
|
| 60 |
|
|
|
|
| 61 |
if __name__ == "__main__":
|
| 62 |
demo.launch()
|