Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -287,7 +287,10 @@ def generate(text, history, rag_option, model_option, temperature=0.5, max_new_
|
|
| 287 |
#result = client.text_generation(payload, do_sample=True,return_full_text=False, max_new_tokens=2048,top_p=0.9,temperature=0.6,)
|
| 288 |
#inference allg:
|
| 289 |
result= requests.post(API_URL, headers=HEADERS, json=prompt)
|
| 290 |
-
|
|
|
|
|
|
|
|
|
|
| 291 |
except Exception as e:
|
| 292 |
raise gr.Error(e)
|
| 293 |
|
|
|
|
| 287 |
#result = client.text_generation(payload, do_sample=True,return_full_text=False, max_new_tokens=2048,top_p=0.9,temperature=0.6,)
|
| 288 |
#inference allg:
|
| 289 |
result= requests.post(API_URL, headers=HEADERS, json=prompt)
|
| 290 |
+
print("prompt:..................")
|
| 291 |
+
print(prompt)
|
| 292 |
+
print("result:..................")
|
| 293 |
+
print(result)
|
| 294 |
except Exception as e:
|
| 295 |
raise gr.Error(e)
|
| 296 |
|