Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ if user_input:
|
|
| 43 |
output = query(checkpoint,{
|
| 44 |
"inputs": prompt,
|
| 45 |
"temperature":temperature,
|
| 46 |
-
"wait_for_model":True})
|
| 47 |
else:
|
| 48 |
|
| 49 |
prompt = user_input
|
|
@@ -51,7 +51,7 @@ if user_input:
|
|
| 51 |
output = query(checkpoint,{
|
| 52 |
"inputs": prompt,
|
| 53 |
"temperature":temperature,
|
| 54 |
-
"wait_for_model":True})
|
| 55 |
|
| 56 |
st.write(f'Model {model_name}: {output}')
|
| 57 |
|
|
@@ -74,3 +74,4 @@ if user_input:
|
|
| 74 |
|
| 75 |
#if __name__ == "__main__":
|
| 76 |
# main()
|
|
|
|
|
|
| 43 |
output = query(checkpoint,{
|
| 44 |
"inputs": prompt,
|
| 45 |
"temperature":temperature,
|
| 46 |
+
"wait_for_model":True})
|
| 47 |
else:
|
| 48 |
|
| 49 |
prompt = user_input
|
|
|
|
| 51 |
output = query(checkpoint,{
|
| 52 |
"inputs": prompt,
|
| 53 |
"temperature":temperature,
|
| 54 |
+
"wait_for_model":True})
|
| 55 |
|
| 56 |
st.write(f'Model {model_name}: {output}')
|
| 57 |
|
|
|
|
| 74 |
|
| 75 |
#if __name__ == "__main__":
|
| 76 |
# main()
|
| 77 |
+
#[0]['generated_text']
|