imseldrith commited on
Commit
561fe8a
1 Parent(s): ae126d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
  import zipfile
 
 
 
 
3
 
4
  def unzip_file(zip_path, extract_path):
5
  with zipfile.ZipFile(zip_path, 'r') as zip_ref:
@@ -15,7 +19,7 @@ outputs = gr.outputs.Textbox()
15
 
16
  title = "Zip file unzipping app"
17
  description = "This app unzips a zip file to the specified extract path."
18
- examples = [["unzip-bot-beta.zip", "/unzip"]]
19
 
20
  app = gr.Interface(unzip_file, inputs, outputs, title=title, description=description,examples=examples)
21
 
 
1
  import gradio as gr
2
  import zipfile
3
+ import os
4
+
5
+ current_path = os.getcwd()
6
+ print("Current path:", current_path)
7
 
8
  def unzip_file(zip_path, extract_path):
9
  with zipfile.ZipFile(zip_path, 'r') as zip_ref:
 
19
 
20
  title = "Zip file unzipping app"
21
  description = "This app unzips a zip file to the specified extract path."
22
+ examples = [["unzip-bot-beta.zip", current_path+"/unzip"]]
23
 
24
  app = gr.Interface(unzip_file, inputs, outputs, title=title, description=description,examples=examples)
25