hollywoodfrancis
commited on
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
# Load your model
|
5 |
+
model_name = "your-username/your-model-name"
|
6 |
+
qa_pipeline = pipeline("text-generation", model=model_name)
|
7 |
+
|
8 |
+
# Streamlit app
|
9 |
+
st.title("Investment Banking Assistant")
|
10 |
+
user_input = st.text_input("Ask a question:")
|
11 |
+
|
12 |
+
if user_input:
|
13 |
+
response = qa_pipeline(user_input, max_length=100)
|
14 |
+
st.write(response[0]["generated_text"])
|