Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from AssistantService import GPTAssistant
|
| 2 |
from openai.error import AuthenticationError
|
| 3 |
import streamlit as st
|
|
|
|
| 4 |
import configparser
|
| 5 |
|
| 6 |
config = configparser.ConfigParser()
|
|
@@ -10,7 +11,6 @@ if 'DEFAULT' in config:
|
|
| 10 |
|
| 11 |
st.title("Web Scraping Assistant")
|
| 12 |
st.write("This app helps you to extract data from HTML code using web scraping. It uses GPT-3.5-turbo to generate the code for you.")
|
| 13 |
-
st.write("Contribute to this project on [GitHub](https://github.com/CognitiveLabs/GPT-auto-webscraping)")
|
| 14 |
if assistant_api_key == '':
|
| 15 |
assistant_api_key = st.text_input("Paste your API key here:")
|
| 16 |
if assistant_api_key:
|
|
@@ -59,3 +59,5 @@ if 'code_generated' in st.session_state:
|
|
| 59 |
st.table(result)
|
| 60 |
else:
|
| 61 |
st.write("error extracting data")
|
|
|
|
|
|
|
|
|
| 1 |
from AssistantService import GPTAssistant
|
| 2 |
from openai.error import AuthenticationError
|
| 3 |
import streamlit as st
|
| 4 |
+
import analytics.ga as ga
|
| 5 |
import configparser
|
| 6 |
|
| 7 |
config = configparser.ConfigParser()
|
|
|
|
| 11 |
|
| 12 |
st.title("Web Scraping Assistant")
|
| 13 |
st.write("This app helps you to extract data from HTML code using web scraping. It uses GPT-3.5-turbo to generate the code for you.")
|
|
|
|
| 14 |
if assistant_api_key == '':
|
| 15 |
assistant_api_key = st.text_input("Paste your API key here:")
|
| 16 |
if assistant_api_key:
|
|
|
|
| 59 |
st.table(result)
|
| 60 |
else:
|
| 61 |
st.write("error extracting data")
|
| 62 |
+
|
| 63 |
+
ga.ga_markdown()
|