Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1207,12 +1207,12 @@ def handle_large_dataset(df, create_document,isDataFrame):
|
|
1207 |
login(token=os.getenv("HF_TOKEN"))
|
1208 |
from huggingface_hub import HfApi
|
1209 |
api = HfApi()
|
1210 |
-
api.upload_file(path_or_fileobj=file_path, repo_id=repo_id, repo_type= "space", path_in_repo="
|
1211 |
|
1212 |
from huggingface_hub import hf_hub_url
|
1213 |
|
1214 |
print(hf_hub_url(
|
1215 |
-
repo_id="Redmind/NewageNXTGPT", filename="
|
1216 |
))
|
1217 |
|
1218 |
#print(f"Download the file here: {download_url}")
|
@@ -1255,7 +1255,7 @@ def create_pdf(name,id):
|
|
1255 |
output.write(filled.read())
|
1256 |
|
1257 |
repo_id = "Redmind/NewageNXTGPT"
|
1258 |
-
file_output=f"
|
1259 |
from huggingface_hub import HfApi
|
1260 |
api = HfApi()
|
1261 |
api.upload_file(path_or_fileobj=output_file_name, repo_id=repo_id, repo_type= "space", path_in_repo=file_output)
|
@@ -1364,7 +1364,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
1364 |
sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")
|
1365 |
sample_button1 = gr.Button("What are the active warehouses available", elem_classes="gr-buttonbig")
|
1366 |
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")
|
1367 |
-
sample_button3 = gr.Button("
|
1368 |
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse WH1000001 & send email to meetarun@gmail.com", elem_classes="gr-button")
|
1369 |
|
1370 |
# Chatbot component
|
|
|
1207 |
login(token=os.getenv("HF_TOKEN"))
|
1208 |
from huggingface_hub import HfApi
|
1209 |
api = HfApi()
|
1210 |
+
api.upload_file(path_or_fileobj=file_path, repo_id=repo_id, repo_type= "space", path_in_repo="data/output.xlsx")
|
1211 |
|
1212 |
from huggingface_hub import hf_hub_url
|
1213 |
|
1214 |
print(hf_hub_url(
|
1215 |
+
repo_id="Redmind/NewageNXTGPT", filename="data/output.xlsx"
|
1216 |
))
|
1217 |
|
1218 |
#print(f"Download the file here: {download_url}")
|
|
|
1255 |
output.write(filled.read())
|
1256 |
|
1257 |
repo_id = "Redmind/NewageNXTGPT"
|
1258 |
+
file_output=f"data/{output_file_name}"
|
1259 |
from huggingface_hub import HfApi
|
1260 |
api = HfApi()
|
1261 |
api.upload_file(path_or_fileobj=output_file_name, repo_id=repo_id, repo_type= "space", path_in_repo=file_output)
|
|
|
1364 |
sample_button = gr.Button("What are the details of ASN24091600002", elem_classes="gr-buttonbig")
|
1365 |
sample_button1 = gr.Button("What are the active warehouses available", elem_classes="gr-buttonbig")
|
1366 |
sample_button2 = gr.Button("Explain Pre-Receiving Yard Management", elem_classes="gr-buttonbig")
|
1367 |
+
sample_button3 = gr.Button("can you generate a histogram chart with item name and customer for warehouse WH1000001", elem_classes="gr-buttonbig")
|
1368 |
sample_button4 = gr.Button("Analyze item name & quantity for different customers in a stacked bar chart for the warehouse WH1000001 & send email to meetarun@gmail.com", elem_classes="gr-button")
|
1369 |
|
1370 |
# Chatbot component
|