mgokg commited on
Commit
41810a3
·
verified ·
1 Parent(s): 5040744

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -3,7 +3,13 @@ from flask import Flask, jsonify
3
  import threading
4
  from flask_cors import CORS, cross_origin
5
 
 
 
 
6
 
 
 
 
7
  app = Flask(__name__)
8
  cors = CORS(app)
9
  @app.route('/api', methods=['POST'])
@@ -25,12 +31,8 @@ flask_thread = threading.Thread(target=run_flask)
25
  flask_thread.start()
26
 
27
  # Streamlit Frontend
28
- import streamlit as st
29
- import requests
30
 
31
- st.title("huhu")
32
- def prompting(prompt):
33
- st.write(prompt)
34
  #response = requests.get('https://huggingface.co/spaces/mgokg/PandasAI:5000/api?data=huhu')
35
  #data = response.json()
36
 
 
3
  import threading
4
  from flask_cors import CORS, cross_origin
5
 
6
+ def prompting(prompt):
7
+ import streamlit as st
8
+ import requests
9
 
10
+ st.title("huhu")
11
+ st.write(prompt)
12
+
13
  app = Flask(__name__)
14
  cors = CORS(app)
15
  @app.route('/api', methods=['POST'])
 
31
  flask_thread.start()
32
 
33
  # Streamlit Frontend
 
 
34
 
35
+
 
 
36
  #response = requests.get('https://huggingface.co/spaces/mgokg/PandasAI:5000/api?data=huhu')
37
  #data = response.json()
38