tpei0009
commited on
Commit
·
a3f4f41
1
Parent(s):
68ab822
Initial commit
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
from transformers import pipeline
|
| 3 |
+
|
| 4 |
+
# Load your model from the Hugging Face Hub
|
| 5 |
+
model = pipeline("text-generation", model="noobasuna/instruct-pix2pix-model")
|
| 6 |
+
|
| 7 |
+
st.title("InstructME2ME")
|
| 8 |
+
|
| 9 |
+
prompt = st.text_input("Enter your prompt:")
|
| 10 |
+
if prompt:
|
| 11 |
+
output = model(prompt)[0]["generated_text"]
|
| 12 |
+
st.write(output)
|