Spaces:
Running
Running
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
x = st.slider('Select a value')
|
4 |
+
st.write(x, 'squared is', x * x)
|
5 |
+
|
6 |
+
def print_hi(name):
|
7 |
+
# Use a breakpoint in the code line below to debug your script.
|
8 |
+
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoin
|
9 |
+
# Press the green button in the gutter to run the script.
|
10 |
+
if __name__ == '__main__':
|
11 |
+
print_hi('PyCharm')
|
12 |
+
|
13 |
+
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
|