Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import transformers
|
| 2 |
import torch
|
| 3 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
|
@@ -23,7 +24,7 @@ def generate_response(user_input):
|
|
| 23 |
# Start the chat loop
|
| 24 |
while True:
|
| 25 |
# Get user input
|
| 26 |
-
uinput =
|
| 27 |
|
| 28 |
if uinput.lower() == "quit":
|
| 29 |
break
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
import transformers
|
| 3 |
import torch
|
| 4 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
|
|
|
| 24 |
# Start the chat loop
|
| 25 |
while True:
|
| 26 |
# Get user input
|
| 27 |
+
uinput = st.text_input("Enter your input: ")
|
| 28 |
|
| 29 |
if uinput.lower() == "quit":
|
| 30 |
break
|