mgokg commited on
Commit
c4b5495
·
verified ·
1 Parent(s): 822d7ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -11,6 +11,14 @@ def routing(message):
11
  api_name="/predict"
12
  )
13
  return result
 
 
 
 
 
 
 
 
14
 
15
  def process_pdf(file):
16
  # Read the PDF content
@@ -33,6 +41,8 @@ def process_file(file):
33
  for paragraph in docx_document.paragraphs:
34
  text += paragraph.text + "\n"
35
 
 
 
36
  return text
37
  #return [Document(text=text)]
38
 
 
11
  api_name="/predict"
12
  )
13
  return result
14
+
15
+ def mitteilung(input):
16
+ client = Client("mgokg/Gemini2.0")
17
+ result = client.predict(
18
+ input_text=f"{input}",
19
+ api_name="/generate_press_release"
20
+ )
21
+ print(result)
22
 
23
  def process_pdf(file):
24
  # Read the PDF content
 
41
  for paragraph in docx_document.paragraphs:
42
  text += paragraph.text + "\n"
43
 
44
+ result = mitteilung(text)
45
+ return result
46
  return text
47
  #return [Document(text=text)]
48