Spaces:
Runtime error
Runtime error
Commit
·
926a846
1
Parent(s):
da46ac9
test with bokeh
Browse files- app.py +14 -0
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -31,8 +31,22 @@ So, can individual researchers and small labs still train state-of-the-art? Yes
|
|
| 31 |
All it takes is for a bunch of us to come together. In fact, we're doing it right now and <b>you're invited to join!</b>
|
| 32 |
""", vspace_before=12)
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
draw_current_progress()
|
| 35 |
|
|
|
|
| 36 |
content_text(f"""
|
| 37 |
For this demo we train a model similar to {cite("OpenAI DALL-E", "https://openai.com/blog/dall-e/")},
|
| 38 |
that is, a transformer "language model" that generates images from text description.
|
|
|
|
| 31 |
All it takes is for a bunch of us to come together. In fact, we're doing it right now and <b>you're invited to join!</b>
|
| 32 |
""", vspace_before=12)
|
| 33 |
|
| 34 |
+
#DEBUG
|
| 35 |
+
import streamlit as st
|
| 36 |
+
from bokeh.plotting import figure
|
| 37 |
+
x = [1, 2, 3, 4, 5]
|
| 38 |
+
y = [6, 7, 2, 4, 5]
|
| 39 |
+
p = figure(
|
| 40 |
+
title='simple line example',
|
| 41 |
+
x_axis_label='x',
|
| 42 |
+
y_axis_label='y')
|
| 43 |
+
p.line(x, y, legend_label='Trend', line_width=2)
|
| 44 |
+
st.bokeh_chart(p, use_container_width=True)
|
| 45 |
+
#/DEBUG
|
| 46 |
+
|
| 47 |
draw_current_progress()
|
| 48 |
|
| 49 |
+
|
| 50 |
content_text(f"""
|
| 51 |
For this demo we train a model similar to {cite("OpenAI DALL-E", "https://openai.com/blog/dall-e/")},
|
| 52 |
that is, a transformer "language model" that generates images from text description.
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
streamlit
|
| 2 |
wandb
|
| 3 |
-
requests_futures
|
|
|
|
|
|
| 1 |
streamlit
|
| 2 |
wandb
|
| 3 |
+
requests_futures
|
| 4 |
+
bokeh==2.4.1
|