Spaces:
Sleeping
Sleeping
xavierbarbier
commited on
Commit
•
2f706b1
1
Parent(s):
a925a65
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def qa(question: str) -> str:
|
|
98 |
Réponse:
|
99 |
"""
|
100 |
outputs = model.generate(prompt=prompt, temp=0.5, top_k = 40, top_p = 1, max_tokens = max_new_tokens)
|
101 |
-
return
|
102 |
|
103 |
|
104 |
demo = gr.Interface(
|
|
|
98 |
Réponse:
|
99 |
"""
|
100 |
outputs = model.generate(prompt=prompt, temp=0.5, top_k = 40, top_p = 1, max_tokens = max_new_tokens)
|
101 |
+
return "".join(outputs)
|
102 |
|
103 |
|
104 |
demo = gr.Interface(
|