ai01firebird commited on
Commit
e6d2bc0
·
verified ·
1 Parent(s): 783a256
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ genai.configure(api_key=os.getenv('GEMINI_API_KEY'))
9
  # Specify model
10
  model = genai.GenerativeModel('gemini-2.5-pro-exp-03-25')
11
 
12
- # Function to translate text into emojis using OpenAI API
13
  def text_to_emoji(text):
14
  text_cleaned = re.sub(r"[.,!?;:]", "", text)
15
  prompt = f"Convert this sentence into an emoji-sequence of the same meaning and return only the emojis, no explanation:\n\n\"{text_cleaned}\""
@@ -26,4 +26,4 @@ iface = gr.Interface(
26
  description="Enter a sentence, and the AI will transform it into an emoji-version 🥳"
27
  )
28
 
29
- iface.launch(debug=True)
 
9
  # Specify model
10
  model = genai.GenerativeModel('gemini-2.5-pro-exp-03-25')
11
 
12
+ # Function to translate text into emojis
13
  def text_to_emoji(text):
14
  text_cleaned = re.sub(r"[.,!?;:]", "", text)
15
  prompt = f"Convert this sentence into an emoji-sequence of the same meaning and return only the emojis, no explanation:\n\n\"{text_cleaned}\""
 
26
  description="Enter a sentence, and the AI will transform it into an emoji-version 🥳"
27
  )
28
 
29
+ iface.launch()