Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,11 @@ def main():
|
|
35 |
|
36 |
prompt = 'generate a question: ' + user_input
|
37 |
|
38 |
-
|
39 |
-
output = query(checkpoint,{
|
40 |
"inputs": prompt,
|
41 |
-
"wait_for_model":True})
|
|
|
|
|
42 |
except:
|
43 |
st.write(output)
|
44 |
return
|
|
|
35 |
|
36 |
prompt = 'generate a question: ' + user_input
|
37 |
|
38 |
+
output = query(checkpoint,{
|
|
|
39 |
"inputs": prompt,
|
40 |
+
"wait_for_model":True})
|
41 |
+
try:
|
42 |
+
output=output[0]['generated_text']
|
43 |
except:
|
44 |
st.write(output)
|
45 |
return
|