Spaces:
Runtime error
Runtime error
agentharbor
commited on
Commit
•
4847d19
1
Parent(s):
5dea8ad
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import InferenceClient
|
|
|
4 |
|
5 |
"""
|
6 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
@@ -440,6 +441,7 @@ def model_response(text):
|
|
440 |
response = model.generate_content(text)
|
441 |
return response.text
|
442 |
|
|
|
443 |
def respond(
|
444 |
message,
|
445 |
history: list[tuple[str, str]],
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
from huggingface_hub import InferenceClient
|
4 |
+
from langsmith import traceable
|
5 |
|
6 |
"""
|
7 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
|
441 |
response = model.generate_content(text)
|
442 |
return response.text
|
443 |
|
444 |
+
@traceable
|
445 |
def respond(
|
446 |
message,
|
447 |
history: list[tuple[str, str]],
|