Spaces:
Runtime error
Runtime error
__
Browse files- app.py +29 -0
- requirements.txt +1 -0
app.py
CHANGED
@@ -2,3 +2,32 @@ import os, logging, torch, streamlit as st
|
|
2 |
from transformers import (
|
3 |
AutoTokenizer, AutoModelForCausalLM)
|
4 |
st.balloons()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
from transformers import (
|
3 |
AutoTokenizer, AutoModelForCausalLM)
|
4 |
st.balloons()
|
5 |
+
|
6 |
+
@st.cache
|
7 |
+
def f():
|
8 |
+
return 1
|
9 |
+
|
10 |
+
st.text(f())
|
11 |
+
|
12 |
+
# DONE 6.1s
|
13 |
+
|
14 |
+
# ===== Application Startup at 2023-02-23 17:51:48 =====
|
15 |
+
|
16 |
+
# 2023-02-23 18:52:26.009 INFO matplotlib.font_manager: generated new fontManager
|
17 |
+
|
18 |
+
# Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
|
19 |
+
|
20 |
+
|
21 |
+
# You can now view your Streamlit app in your browser.
|
22 |
+
|
23 |
+
# Network URL: http://10.19.49.246:8501
|
24 |
+
# External URL: http://34.197.127.12:8501
|
25 |
+
|
26 |
+
|
27 |
+
# A new version of Streamlit is available.
|
28 |
+
|
29 |
+
# See what's new at https://discuss.streamlit.io/c/announcements
|
30 |
+
|
31 |
+
# Enter the following command to upgrade:
|
32 |
+
# $ pip install streamlit --upgrade
|
33 |
+
|
requirements.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1 |
torch
|
2 |
transformers
|
3 |
streamlit==1.17.0
|
|
|
|
1 |
torch
|
2 |
transformers
|
3 |
streamlit==1.17.0
|
4 |
+
gradio==3.19.1
|