mkaramb commited on
Commit
a05285c
·
verified ·
1 Parent(s): c8e2f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,7 @@ results_df = pd.DataFrame(columns=["Filename", "Extracted Text", "Translated Tex
26
  # Set your Google Cloud Document AI processor details here
27
  project_id = "herbaria-ai"
28
  location = "us"
29
- processor_id = "4307b078717a399a"
30
 
31
  def translate_text(text, target_language="en"):
32
  translate_client = translate.Client()
@@ -190,6 +190,7 @@ interface = gr.Interface(
190
  outputs=["HTML", "file"],
191
  title="Document AI Translation",
192
  description="Upload a ZIP file containing JPEG/JPG images, and the system will extract and translate text from each image.",
 
193
  )
194
 
195
  if __name__ == "__main__":
 
26
  # Set your Google Cloud Document AI processor details here
27
  project_id = "herbaria-ai"
28
  location = "us"
29
+ processor_id = "de954414712822b3"
30
 
31
  def translate_text(text, target_language="en"):
32
  translate_client = translate.Client()
 
190
  outputs=["HTML", "file"],
191
  title="Document AI Translation",
192
  description="Upload a ZIP file containing JPEG/JPG images, and the system will extract and translate text from each image.",
193
+ theme='abidlabs/pakistan'
194
  )
195
 
196
  if __name__ == "__main__":