Spaces:
Runtime error
Runtime error
Commit
·
17353e7
1
Parent(s):
17f4e86
added model
Browse files
app.py
CHANGED
|
@@ -28,15 +28,15 @@ def predict_query(input_sentence,max_len=40,temp=0.7):
|
|
| 28 |
idx=out.find("<|sep|>")+7
|
| 29 |
out=out[idx:]
|
| 30 |
print(f"Sugestion{i} :{out}")
|
| 31 |
-
pred.append(
|
| 32 |
return pred
|
| 33 |
# option = st.selectbox(
|
| 34 |
# 'Please Select option',
|
| 35 |
# ('Predictive writing',"None"),index=1)
|
| 36 |
|
| 37 |
|
| 38 |
-
st.title("
|
| 39 |
-
st.write('###
|
| 40 |
st.sidebar.markdown(
|
| 41 |
'''
|
| 42 |
## This is a demo of a text generation model trained with GPT-2
|
|
|
|
| 28 |
idx=out.find("<|sep|>")+7
|
| 29 |
out=out[idx:]
|
| 30 |
print(f"Sugestion{i} :{out}")
|
| 31 |
+
pred.append(out)
|
| 32 |
return pred
|
| 33 |
# option = st.selectbox(
|
| 34 |
# 'Please Select option',
|
| 35 |
# ('Predictive writing',"None"),index=1)
|
| 36 |
|
| 37 |
|
| 38 |
+
st.title("Text2SQL")
|
| 39 |
+
st.write('### Generate SQL Query with just Natural Language sentence')
|
| 40 |
st.sidebar.markdown(
|
| 41 |
'''
|
| 42 |
## This is a demo of a text generation model trained with GPT-2
|