Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def upload_image():
|
|
24 |
# You can perform additional operations with the image here
|
25 |
# ...
|
26 |
|
27 |
-
return
|
28 |
|
29 |
|
30 |
@app.route('/get_text', methods=['GET'])
|
@@ -42,18 +42,11 @@ def get_text():
|
|
42 |
return disease
|
43 |
|
44 |
|
45 |
-
|
|
|
|
|
46 |
|
47 |
-
# Print a message
|
48 |
-
st.write("Hello, Streamlit!")
|
49 |
|
50 |
-
# Print a formatted message
|
51 |
-
name = "John"
|
52 |
-
age = 30
|
53 |
-
st.write(f"My name is {name} and I am {age} years old.")
|
54 |
|
55 |
|
56 |
-
|
57 |
-
app.run(host='0.0.0.0', port=8080 )
|
58 |
-
# if __name__ == '__app__':
|
59 |
-
# app.run( host='0.0.0.0',port=7860)
|
|
|
24 |
# You can perform additional operations with the image here
|
25 |
# ...
|
26 |
|
27 |
+
return "Image uploaded successfully"
|
28 |
|
29 |
|
30 |
@app.route('/get_text', methods=['GET'])
|
|
|
42 |
return disease
|
43 |
|
44 |
|
45 |
+
@app.route('/', methods=['GET'])
|
46 |
+
def hi():
|
47 |
+
return "Hello world"
|
48 |
|
|
|
|
|
49 |
|
|
|
|
|
|
|
|
|
50 |
|
51 |
|
52 |
+
app.run(host='0.0.0.0', port=7860)
|
|
|
|
|
|