Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
-
from
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
-
model = AutoModelForCausalLM.from_pretrained("TheBloke/Mistral-7B-OpenOrca-GGUF", model_file="mistral-7b-openorca.Q2_K.gguf", model_type="mistral")
|
| 5 |
|
| 6 |
text= st.text_area("Preg煤ntale a Don Sim贸n")
|
| 7 |
|
| 8 |
if text:
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 11 |
|
|
|
|
| 1 |
+
from model import model
|
| 2 |
import streamlit as st
|
| 3 |
|
|
|
|
| 4 |
|
| 5 |
text= st.text_area("Preg煤ntale a Don Sim贸n")
|
| 6 |
|
| 7 |
if text:
|
| 8 |
+
answer = model(text,temperature=.0,max_new_tokens=25)
|
| 9 |
+
if answer:
|
| 10 |
+
st.write(answer)
|
| 11 |
|