Nimzi commited on
Commit
55e8457
·
verified ·
1 Parent(s): fe435c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -10,9 +10,8 @@ from groq import Groq
10
  from openai import OpenAI
11
 
12
  # Set up the Groq client
13
- export GROQ_API_KEY="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"
14
-
15
- client = Groq(api_key=os.environ.get("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"))
16
 
17
  # Load a fake news detection model from Hugging Face
18
  fake_news_pipeline = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-fake-news-detection")
 
10
  from openai import OpenAI
11
 
12
  # Set up the Groq client
13
+ import os
14
+ client = Groq(api_key=os.getenv("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"))
 
15
 
16
  # Load a fake news detection model from Hugging Face
17
  fake_news_pipeline = pipeline("text-classification", model="mrm8488/bert-tiny-finetuned-fake-news-detection")