Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,14 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
8 |
"""
|
9 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
10 |
try:
|
11 |
-
os.makedirs("/
|
12 |
-
print("'
|
13 |
except Exception as e:
|
14 |
print(f"Dizin oluşturulamadı: {e}")
|
15 |
|
16 |
# Test dosyası oluşturmayı dene
|
17 |
try:
|
18 |
-
with open("
|
19 |
f.write("Test başarılı")
|
20 |
print("Test dosyası oluşturuldu.")
|
21 |
except Exception as e:
|
|
|
8 |
"""
|
9 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
10 |
try:
|
11 |
+
os.makedirs("/data/", exist_ok=True)
|
12 |
+
print("'data' dizini başarıyla oluşturuldu veya zaten mevcut.")
|
13 |
except Exception as e:
|
14 |
print(f"Dizin oluşturulamadı: {e}")
|
15 |
|
16 |
# Test dosyası oluşturmayı dene
|
17 |
try:
|
18 |
+
with open("/data/test.txt", "w", encoding="utf-8") as f:
|
19 |
f.write("Test başarılı")
|
20 |
print("Test dosyası oluşturuldu.")
|
21 |
except Exception as e:
|