Omer Danziger commited on
Commit ·
3979dfb
1
Parent(s): 41c82ad
add wait for model name
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
from LLM import LLM
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
model = st.text_input("model name: ")
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# model = "mosaicml/mpt-7b-chat"
|
| 7 |
context = "You are an helpfully assistant in a school. You are helping a student with his homework."
|
| 8 |
|
|
|
|
| 1 |
from LLM import LLM
|
| 2 |
+
import time
|
| 3 |
import streamlit as st
|
| 4 |
|
| 5 |
model = st.text_input("model name: ")
|
| 6 |
|
| 7 |
+
while model == "":
|
| 8 |
+
time.sleep(0.1)
|
| 9 |
+
|
| 10 |
# model = "mosaicml/mpt-7b-chat"
|
| 11 |
context = "You are an helpfully assistant in a school. You are helping a student with his homework."
|
| 12 |
|