working???
Browse files
app.py
CHANGED
|
@@ -1,15 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
)
|
| 7 |
-
|
| 8 |
-
def predict(prompt):
|
| 9 |
-
summary = model(prompt)[0]["summary_text"]
|
| 10 |
-
return summary
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
# create an interface for the model
|
| 14 |
-
with st.Interface(predict, "textbox", "text") as interface:
|
| 15 |
-
interface.launch()
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
+
# simple streamlit app saying hello world
|
| 5 |
+
st.write("Hello, World!")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|